package com.ikas.autumn.iec104.module.xxljob;

import com.ikas.autumn.iec104.module.protocol.manual.ManualSend104Controller;
//import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.time.LocalDateTime;

/**
 * @author wuyf
 * @date 2023/9/22 9:42
 */
@Slf4j
@Component
public class TotalSummonTask {
    @Resource
    private ManualSend104Controller manualSend104Controller;

//    @XxlJob(value = "totalSummonTask")
    public void handleTotalSummonTask() {

        log.info("***********xxl-job****************");
        log.info("xxl-job Total-SummonTask start time:{}", LocalDateTime.now());
        manualSend104Controller.sendTotalSummon();
        log.info("xxl-job Total-SummonTask,end time:{}", LocalDateTime.now());
        log.info("***********xxl-job****************");
    }
}
